package IOFlow.bufferedStreams.characterBufferedStream;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

public class CharacterBufferedInputStream {
    public static void main(String[] args) throws IOException {
        /**
         * 字符缓冲输入流:
         *      构造方法:
         *          public BufferedReader(Reader r)
         *      特有方法:
         *      public String readLine()    读一行
         */

        BufferedReader br=new BufferedReader(new FileReader("JavaCase\\TestABC"));

//        String line = br.readLine();
//
//        System.out.println(line);
//        br.close();

        String line;
        while((line=br.readLine())!=null){
            System.out.println(line);
        }
        br.close();
    }
}
